home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{D5A04443-2C88-11D3-A119-0080C6F7AC86}#2.0#0"; "SWBCOOLBTN.OCX"
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "SWBCoolButton Sample Project"
- ClientHeight = 4395
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 6495
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4395
- ScaleWidth = 6495
- StartUpPosition = 2 'CenterScreen
- Begin VB.CheckBox chkShowFocus
- Caption = "Show Focus"
- Height = 195
- Left = 3060
- TabIndex = 3
- Top = 3210
- Width = 1785
- End
- Begin VB.CheckBox chkEnabled
- Caption = "Buttons Enabled"
- Height = 255
- Left = 3060
- TabIndex = 2
- Top = 2880
- Value = 1 'Checked
- Width = 1635
- End
- Begin VB.Frame Frame2
- Height = 3585
- Left = 90
- TabIndex = 0
- Top = 660
- Width = 1245
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet1
- Height = 795
- Index = 0
- Left = 150
- TabIndex = 5
- Top = 240
- Width = 915
- _ExtentX = 1614
- _ExtentY = 1402
- Caption = "&New"
- MaskColor = 12632256
- Picture = "Form1.frx":0000
- PictureHot = "Form1.frx":067A
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet1
- Height = 795
- Index = 1
- Left = 150
- TabIndex = 6
- Top = 1050
- Width = 915
- _ExtentX = 1614
- _ExtentY = 1402
- Caption = "&Open"
- MaskColor = 12632256
- Picture = "Form1.frx":0CF4
- PictureHot = "Form1.frx":136E
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet1
- Height = 795
- Index = 2
- Left = 150
- TabIndex = 7
- Top = 1860
- Width = 915
- _ExtentX = 1614
- _ExtentY = 1402
- Caption = "&Save"
- MaskColor = 12632256
- Picture = "Form1.frx":19E8
- PictureHot = "Form1.frx":2062
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet1
- Height = 795
- Index = 3
- Left = 150
- TabIndex = 8
- Top = 2670
- Width = 915
- _ExtentX = 1614
- _ExtentY = 1402
- Caption = "&Print"
- MaskColor = 12632256
- Picture = "Form1.frx":26DC
- PictureHot = "Form1.frx":2D56
- End
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdExit
- Height = 375
- Left = 5070
- TabIndex = 4
- Top = 3870
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 661
- Caption = "E&xit"
- CaptionPos = 3
- MaskColor = 12632256
- End
- Begin VB.Frame Frame1
- Height = 45
- Left = -30
- TabIndex = 1
- Top = 420
- Width = 6855
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet2
- Height = 375
- Index = 0
- Left = 30
- TabIndex = 11
- Top = 30
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 661
- Caption = "Spell &Check"
- CaptionPos = 2
- MaskColor = 12632256
- Picture = "Form1.frx":33D0
- PictureHot = "Form1.frx":3912
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet2
- Height = 375
- Index = 1
- Left = 1320
- TabIndex = 12
- Top = 30
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 661
- Caption = "Pre&view"
- CaptionPos = 2
- MaskColor = 12632256
- Picture = "Form1.frx":3E54
- PictureHot = "Form1.frx":4396
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet2
- Height = 375
- Index = 2
- Left = 2610
- TabIndex = 13
- Top = 30
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 661
- Caption = "P&aint"
- CaptionPos = 2
- MaskColor = 12632256
- Picture = "Form1.frx":48D8
- PictureHot = "Form1.frx":4E1A
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet2
- Height = 375
- Index = 3
- Left = 3900
- TabIndex = 14
- Top = 30
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 661
- Caption = "&Undo"
- CaptionPos = 2
- MaskColor = 12632256
- Picture = "Form1.frx":535C
- PictureHot = "Form1.frx":589E
- End
- Begin SWBCoolBtnCtl.SWBCoolBtn cmdSet2
- Height = 375
- Index = 4
- Left = 5190
- TabIndex = 15
- Top = 30
- Width = 1275
- _ExtentX = 2249
- _ExtentY = 661
- Caption = "&Help"
- CaptionPos = 2
- MaskColor = 12632256
- Picture = "Form1.frx":5DE0
- PictureHot = "Form1.frx":6322
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Last Button Clicked:"
- Height = 195
- Left = 3120
- TabIndex = 10
- Top = 1920
- Width = 1425
- End
- Begin VB.Label lblClick
- BorderStyle = 1 'Fixed Single
- Height = 315
- Left = 3120
- TabIndex = 9
- Top = 2130
- Width = 1485
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub chkEnabled_Click()
- Dim I As Integer
- For I = 0 To cmdSet1.UBound
- cmdSet1(I).Enabled = (chkEnabled = vbChecked)
- Next I
- For I = 0 To cmdSet2.UBound
- cmdSet2(I).Enabled = (chkEnabled = vbChecked)
- Next I
- End Sub
- Private Sub chkShowFocus_Click()
- Dim I As Integer
- For I = 0 To cmdSet1.UBound
- cmdSet1(I).ShowFocus = (chkShowFocus = vbChecked)
- Next I
- For I = 0 To cmdSet2.UBound
- cmdSet2(I).ShowFocus = (chkShowFocus = vbChecked)
- Next I
- cmdSet1(0).SetFocus
- End Sub
- Private Sub cmdExit_Click()
- Unload Me
- End Sub
- Private Sub cmdSet1_Click(Index As Integer)
- lblClick.Caption = cmdSet1(Index).Caption
- End Sub
- Private Sub cmdSet2_Click(Index As Integer)
- lblClick.Caption = cmdSet2(Index).Caption
- End Sub
-